package com.mall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import springfox.documentation.oas.annotations.EnableOpenApi;

@MapperScan("com.mall.dao.*")
@EnableGlobalMethodSecurity(prePostEnabled=true)
@EnableOpenApi
@SpringBootApplication
@EnableAsync
public class MallProjectApplication {
    public static void main(String[] args) {
        SpringApplication.run(MallProjectApplication.class, args);
    }
}